package com.smart.entity.business;


import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.smart.model.excel.annotation.ExcelField;
import com.smart.model.excel.annotation.ExcelFields;
import com.smart.mybatis.entity.BaseIdEntity;
import java.math.BigDecimal;
import java.util.Date;
import com.smart.mybatis.annotation.Column;
import com.smart.mybatis.enums.QueryType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.FieldNameConstants;
import lombok.NoArgsConstructor;

/**
 * 博爱数据
 *
 * @author wf
 * @since 2025-11-19 13:43:59
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@FieldNameConstants
@TableName("sys_company_1_5")
@ExcelFields({
        @ExcelField(title = "关联点位id", attrName = "pointId",  align = ExcelField.Align.CENTER, sort = 1),
        @ExcelField(title = "采集时间", attrName = "pickTime",  align = ExcelField.Align.CENTER, sort = 2),
        @ExcelField(title = "正向总有功电能", attrName = "pahae",  align = ExcelField.Align.CENTER, sort = 3),
        @ExcelField(title = "尖", attrName = "sharp",  align = ExcelField.Align.CENTER, sort = 4),
        @ExcelField(title = "峰", attrName = "peak",  align = ExcelField.Align.CENTER, sort = 5),
        @ExcelField(title = "平", attrName = "normal",  align = ExcelField.Align.CENTER, sort = 6),
        @ExcelField(title = "谷", attrName = "offPeak",  align = ExcelField.Align.CENTER, sort = 7),
        @ExcelField(title = "总无功电能", attrName = "tianpp",  align = ExcelField.Align.CENTER, sort = 8)
})
public class boaiEntity extends BaseIdEntity {
	private static final long serialVersionUID = 1L;
	/**
	 * 关联点位id
	 */
    @Column(name = "point_id", queryType = QueryType.LIKE, isNull = false)
    private String pointId;
	/**
	 * 采集器号
	 */
    @Column(isNull = false)
    private Long collectorNumber;
	/**
	 * 累计值
	 */
    private BigDecimal cumulative;
	/**
	 * 采集时间
	 */
    @Column(isNull = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    private Date pickTime;
	/**
	 * 正向总有功电能
	 */
    private String pahae;
	/**
	 * 尖
	 */
    private String sharp;
	/**
	 * 峰
	 */
    private String peak;
	/**
	 * 平
	 */
    private String normal;
	/**
	 * 谷
	 */
    private String offPeak;
	/**
	 * 总无功电能
	 */
    private String tianpp;

}
